This archive contains replication files for the following paper:  Pahontu, Raluca L. and Poupakis, Stavros. "Resemblance and Discrimination in Elections"This folder includes instructions for the analysis of this paper. The analysis was conducted using R 4.4.0 in Linux. To replicate the results in the paper and for further information on packages used and directory structure, run first "code-all-run.R" in R. 